6 //Contiene 0 si la fila o columna i es par, 1 si es impar
11 while (cin
>> n
&& n
){
12 for (int i
=0; i
<n
; ++i
){
13 for (int j
=0; j
<n
; ++j
){
18 for (int i
=0; i
<n
; ++i
){
20 for (int j
=0; j
<n
; ++j
){
21 res
= (res
+ m
[i
][j
]) % 2;
27 for (int j
=0; j
<n
; ++j
){
29 for (int i
=0; i
<n
; ++i
){
30 res
= (res
+ m
[i
][j
]) % 2;
35 int oddRows
=0, oddCols
=0;
38 for (int i
=0; i
<n
; ++i
){
44 if (oddRows
+ oddCols
== 0){
46 }else if (oddRows
== 1 && oddCols
== 1){
47 cout
<< "Change bit ("<<x
+1<<","<<y
+1<<")";